package com.xinqi.modules.prepare.courseware.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.prepare.courseware.domain.PrepareCoursewarePartEntity;
import com.xinqi.modules.prepare.courseware.dto.req.PrepareCoursewarePartQueryDTO;
import com.xinqi.modules.prepare.courseware.dto.rsp.PrepareCoursewarePartResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 备课区互动课件切片数据层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper
public interface PrepareCoursewarePartMapper extends SuperMapper<PrepareCoursewarePartEntity> {
    Page<PrepareCoursewarePartResultDTO> findPage(Page<Object> page, @Param("dto") PrepareCoursewarePartQueryDTO query);

    List<PrepareCoursewarePartResultDTO> findList(@Param("dto") PrepareCoursewarePartQueryDTO query);
}
